package org.example.util;
/**
 * 定义前后端通信的状态码
 * */
public class JSONResult {
    //前后端通信状态码
    private int statusCode;
    //前后端通信的响应体
    private Object data;
    //定义前后端通信的信息
    private String message;

    public JSONResult() {
    }

    public JSONResult(int statusCode, Object data, String message) {
        this.statusCode = statusCode;
        this.data = data;
        this.message = message;
    }

    public int getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
    //设置状态码，以及响应信息


}
